GdkDeviceTool: Add GdkDeviceToolType to identify the physical tool type
authorStephen Chandler Paul <thatslyude@gmail.com>
Tue, 13 Jan 2015 05:03:49 +0000 (00:03 -0500)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 6 Apr 2016 13:43:29 +0000 (15:43 +0200)
commit8b2fd3ed1bb58a3c414f37ad25f560a7d3f74786
treea43fd4c3c783466f76d95d02e9e9e7194f560a23
parent9a81b6595942e6a0d34e489450da7dcdf0054e7e
GdkDeviceTool: Add GdkDeviceToolType to identify the physical tool type

Because there are multiple different types of styluses that can be used with
tablets, we have to have some sort of identifier for them attached to the
GdkDeviceTool, especially since knowing the actual tool type for a GdkDeviceTool
is necessary for matching up a GdkDeviceTool with it's appropriate
GdkInputSource in Wayland (eg. matching up a GdkDeviceTool eraser with the
GDK_SOURCE_ERASER GdkInputSource of a wayland tablet).

Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com>
docs/reference/gdk/gdk3-sections.txt
gdk/gdkdevice.c
gdk/gdkdevice.h
gdk/gdkdeviceprivate.h
gdk/x11/gdkdevicemanager-xi2.c